package glazedlists.chapter2;

import ca.odell.issuezilla.Issue;

import java.util.Comparator;

public class IssueComparator implements Comparator<Issue> {

    @Override
    public int compare(Issue issueA, Issue issueB) {
        int issueAValue = issueA.getPriority().getValue();
        int issueBValue = issueB.getPriority().getValue();
        return issueAValue - issueBValue;
    }
}
